package com.example.webconfig.config;

import com.example.webconfig.converter.CustomConverter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.view.InternalResourceViewResolver;

/**
 * @author ljw
 * @description
 * @date 2021/10/26 7:35
 */
@Configuration
public class MyConfig {

    /**
     * 新增自定义的 HttpMessageConverter
     * @param 
     * @author ljw
     * @date 2021/10/26 8:09 
     */
    @Bean
    public HttpMessageConverters customConverters() {
        CustomConverter customConverter = new CustomConverter();
        return new HttpMessageConverters(customConverter);
    }


}
